@import '../../style/mixin';
$easing-in-out: cubic-bezier(0.35, 0, 0.25, 1);
$effect-duration: 0.3s;


.Yep-area-picker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: all 0.2s;
  background-color: #fff;
  text-align: center;
  font-size: 14px;
  @include border-radius();
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  &-title {
    font-size: 36px;
    color: #2e2d2d;
    font-weight: bold;
    &-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 80px;
      padding: 48px 36px 48px 36px;
    }
  }

  &-content {
    height: $area-content-height;
    overflow-y: scroll;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    li {
      //height: 74px;
      line-height: 1;
      padding: 48px 36px 0 36px;
      color: #333;
      font-size: 24px;
      text-align: left;
      display: flex;
      align-items: center;
      .Yep-area-picker-area--selected {
        margin-right: 16px;
        color: $brand-primary;
      }
    }
  }
}

$tabs-default-bar-prefix-cls: Yep-area-picker-tabs-bar;

.#{$tabs-default-bar-prefix-cls} {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;

  &-tab {
    position: relative;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    font-size: $tabs-font-size-heading;
    height: $area-tabs-height;
    line-height: $area-tabs-height;
    margin-left: 48px;
    &:first-of-type{
      margin-left:36px
    }
  }

  &-underline{
    position: absolute;
    display: flex;
    justify-content: center;
    border: none;
    bottom: -8px;
    width: 100%;
    left: 0;
  }

  &-underline-bar{
    width: 52px;
    height: 6px;
    background-image: linear-gradient(90deg,
      #f5503a 0%,
      #fad1cb 100%);
  }

  &-tab-active {
    color: $tabs-color;
  }

  &-animated &-content {
    transition: transform $effect-duration $easing-in-out;
    will-change: transform;
  }

  &-top {
    flex-direction: row;

    .#{$tabs-default-bar-prefix-cls} {
      &-content {
        display: flex;
        width: 100%;
        flex-direction: row;

        .#{$tabs-default-bar-prefix-cls}-tab-active {
          color: $tabs-color;
        }
      }
    }
  }
}
